package com.atguigu.gmall.dao;

import com.atguigu.gmall.search.Product;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.data.domain.Page;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface ProductRepository extends ElasticsearchRepository<Product, Long> {
    /**
     * 查询
     * */
    List<Product> findProductsByBrandName(String name);
}
